package com.tuanzi.loan.business.service.xhh.settlementsystem;

import com.tuanzi.loan.business.entity.xhh.settlementsystem.XhhSettlementPrepay;
import com.tuanzi.loan.core.service.BaseAuditService;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.xhh.settlementsystem.XhhSettlementPrepayRequest;
import com.tuanzi.loan.vo.response.xhh.settlementsystem.XhhSettlementPrepayResponse;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * @author caiwanlin
 * @create 2018-08-22 17:39
 */
public interface XhhSettlementPrepayService extends BaseAuditService<XhhSettlementPrepay,Long> {
    Page<XhhSettlementPrepayResponse> list(PageSearcher<XhhSettlementPrepayRequest> pageSearcher);

    void onSave(XhhSettlementPrepay settlementPrepay);

    List<XhhSettlementPrepay> findAllByBillId(Long billId);

    List<XhhSettlementPrepay> findAllByCompanyId(Long companyId);

    void onDelete(Long id);

    Double getToTalOrderCount(XhhSettlementPrepayRequest $);

    Double getAliOrderCount(XhhSettlementPrepayRequest $);

    Double getBankOrderCount(XhhSettlementPrepayRequest $);

    Double getWechatOrderCount(XhhSettlementPrepayRequest $);
}
